core: Fall back to copying checkouts on EMLINK/EXDEV
authorColin Walters <walters@verbum.org>
Tue, 12 Jun 2012 18:50:38 +0000 (14:50 -0400)
committerColin Walters <walters@verbum.org>
Tue, 12 Jun 2012 18:50:41 +0000 (14:50 -0400)
commit35a80c8e39a69d6fe31f5f76b2cb8eacbd3dc529
tree4fad399e87bad613258df74a669fd928520d3bc7
parent270dc05176661c601696022b26a4fda7435866b1
core: Fall back to copying checkouts on EMLINK/EXDEV

The previous fix to just ignore symbolic links for hard linking isn't
really good enough, since it can happen for empty files too.

Since this is an optimization, when we get EMLINK, let's instead just
fall back to copying.  This also applies to EXDEV.
src/libostree/ostree-repo.c